﻿using UnityEngine;
using UnityEngine.UI;

public class BarElement : MonoBehaviour
{
    [SerializeField]
    private Slider _fillSlider;
    public Slider FillSlider { get { return _fillSlider; } }

    private void Awake()
    {
        FillSlider.value = 0.0f;
    }

    public void SetFill(float amount)
	{
		FillSlider.value = amount * 100.0f;
	}
}
